Lab 5, Spring 2023

Using an editor, answer the following questions:

NAME: Karinna Thompson

---------
example.c
---------
1) What is the cause of the seg fault in the program called example.c?
Core dump


--------
broken.c
--------
2) What line in broken.c did the program seg fault on?
27

3) What was the value of the variable "count" at the time of the seg fault?
0

4) What was the value of the variable "i" at the time of the seg fault?
0

5) What was the value of the variable "search" at the time of the seg fault?
1

6) What are the values in the "table" array?
10,12,14,16,18,20,22,24,26

7) what do you think the bug is?
The while statement was written incorrectly; Should include a >= comparison.  

